package org.example.DesignPatterns.Builder;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-18 12:16
 **/
public class ApartmentBuilder implements Builder{

    private Building apartment;

    public ApartmentBuilder(){
        apartment=new Building();
    }



    @Override
    public void buildBasement() {
        apartment.setBasement("|==========|\n");
    }

    @Override
    public void buildWall() {
        apartment.setWall("| 田 田 田 田  |\n");
    }

    @Override
    public void buildRoof() {
        apartment.setRoof("|==========|\n");
    }

    @Override
    public Building getBuilding() {
        return apartment;
    }
}